<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<meta charset="utf-8">
	<title>客户信息</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/style/myStyle.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 10px 0 0;">

	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">客户编号</label>
		<div class="layui-input-block">
			<input type="text" name="customerNo"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">名称<span style="color:red">*</span></label>
		<div class="layui-input-block">
			<input type="text" name="name" lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">信用代码</label>
		<div class="layui-input-block">
			<input type="text" name="creditCode"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">注册时间</label>
		<div class="layui-input-block">
			<input type="text" name="issueTime"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">法人</label>
		<div class="layui-input-block">
			<input type="text" name="faRen"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">注册资金 (万元 )</label>
		<div class="layui-input-block">
			<input type="text" name="regMoney"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">客户类型Id</label>
		<div class="layui-input-block">
			<input type="text" name="customerTypeId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">客户类型</label>
		<div class="layui-input-block">
			<input type="text" name="customerType"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">公司分类Id</label>
		<div class="layui-input-block">
			<input type="text" name="companyCattegoryId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">公司分类</label>
		<div class="layui-input-block">
			<input type="text" name="companyCattegory"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">所属行业Id</label>
		<div class="layui-input-block">
			<input type="text" name="industryId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">所属行业</label>
		<div class="layui-input-block">
			<input type="text" name="industry"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">纳税人类型;1-一般;2-小规模</label>
		<div class="layui-input-block">
			<input type="text" name="taxpayerType"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">详细地址</label>
		<div class="layui-input-block">
			<input type="text" name="address"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">联系人</label>
		<div class="layui-input-block">
			<input type="text" name="contacts"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">固定电话</label>
		<div class="layui-input-block">
			<input type="text" name="telephone"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">移动电话</label>
		<div class="layui-input-block">
			<input type="text" name="mobile"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">邮箱</label>
		<div class="layui-input-block">
			<input type="text" name="email"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">微信号</label>
		<div class="layui-input-block">
			<input type="text" name="wechatNo"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">QQ</label>
		<div class="layui-input-block">
			<input type="text" name="qq"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">客户网址</label>
		<div class="layui-input-block">
			<input type="text" name="website"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">部门</label>
		<div class="layui-input-block">
			<input type="text" name="department"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">部门Id</label>
		<div class="layui-input-block">
			<input type="text" name="departmentId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">归属用户Id</label>
		<div class="layui-input-block">
			<input type="text" name="userId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">归属用户名称</label>
		<div class="layui-input-block">
			<input type="text" name="userName"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">区域</label>
		<div class="layui-input-block">
			<input type="text" name="region"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">区域Id</label>
		<div class="layui-input-block">
			<input type="text" name="regionId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">省份代码</label>
		<div class="layui-input-block">
			<input type="text" name="provinceCode"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">省份名称</label>
		<div class="layui-input-block">
			<input type="text" name="provinceName"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">城市代码</label>
		<div class="layui-input-block">
			<input type="text" name="cityName"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">城市代码</label>
		<div class="layui-input-block">
			<input type="text" name="cityCode"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">区域名称</label>
		<div class="layui-input-block">
			<input type="text" name="areaName"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">区域代码</label>
		<div class="layui-input-block">
			<input type="text" name="areaCode"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">意向度Id</label>
		<div class="layui-input-block">
			<input type="text" name="intentionId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">意向度</label>
		<div class="layui-input-block">
			<input type="text" name="intention"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">意向时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="intentionTime" id="intentionTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">标签</label>
		<div class="layui-input-block">
			<input type="text" name="labels"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">决策类型Id</label>
		<div class="layui-input-block">
			<input type="text" name="decisionTypeId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">决策类型</label>
		<div class="layui-input-block">
			<input type="text" name="decisionType"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">标记;1-空号;2-错号;3-同行</label>
		<div class="layui-input-block">
			<select name="tag"  id="tag" lay-filter="tag">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">标记状态;1-未审核;2-已审核</label>
		<div class="layui-input-block">
			<select name="tagStatus"  id="tagStatus" lay-filter="tagStatus">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">释放人Id</label>
		<div class="layui-input-block">
			<input type="text" name="releaseId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">释放时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="releaseTime" id="releaseTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">释放类型;1-个人;2-系统</label>
		<div class="layui-input-block">
			<select name="releaseType"  id="releaseType" lay-filter="releaseType">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">预约拜访时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="nextVisitTime" id="nextVisitTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">最后拜访内容</label>
		<div class="layui-input-block">
			<input type="text" name="lastVisit"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">最后拜访时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="lastVisitTime" id="lastVisitTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">拜访状态1-未拜访;2-已拜访</label>
		<div class="layui-input-block">
			<select name="visitStatus"  id="visitStatus" lay-filter="visitStatus">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">拜访次数</label>
		<div class="layui-input-block">
			<select name="visitTimes"  id="visitTimes" lay-filter="visitTimes">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">总呼叫次数</label>
		<div class="layui-input-block">
			<select name="totalCallTime"  id="totalCallTime" lay-filter="totalCallTime">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">最后通话时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="lastCallTime" id="lastCallTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">签约人</label>
		<div class="layui-input-block">
			<input type="text" name="signId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">财税顾问</label>
		<div class="layui-input-block">
			<input type="text" name="adviserId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">采集人</label>
		<div class="layui-input-block">
			<input type="text" name="gatherId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">数据来源Id</label>
		<div class="layui-input-block">
			<input type="text" name="dataSourceId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">数据来源</label>
		<div class="layui-input-block">
			<input type="text" name="dataSource"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">入库时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="addTime" id="addTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">保护状态;1-未保护;2-已保持</label>
		<div class="layui-input-block">
			<select name="protectStatus"  id="protectStatus" lay-filter="protectStatus">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">保护时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="protectTime" id="protectTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">签约状态;1-未签约;2-签约中;3-已签约;</label>
		<div class="layui-input-block">
			<select name="signStatus"  id="signStatus" lay-filter="signStatus">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">会计状态;1-无;2-个人;3-公司;4- 外包</label>
		<div class="layui-input-block">
			<select name="accountType"  id="accountType" lay-filter="accountType">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">类型;1-客户;2-团队;3-公海;4-失效</label>
		<div class="layui-input-block">
			<select name="type"  id="type" lay-filter="type">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">推荐客户ID</label>
		<div class="layui-input-block">
			<input type="text" name="recommendId"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">推荐客户名</label>
		<div class="layui-input-block">
			<input type="text" name="recommendName"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">状态;1-正常;2-失效</label>
		<div class="layui-input-block">
			<select name="status"  id="status" lay-filter="status">
			</select>
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">创建时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="createTime" id="createTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">修改时间</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" name="modifyTime" id="modifyTime-laydate" placeholder="yyyy-MM-dd HH:mm:ss">
		</div>
	</div>
	<div class="layui-form-item layui-form-item-my" >
		<label class="layui-form-label">备注描述</label>
		<div class="layui-input-block">
			<input type="text" name="remark"  placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>

	<div class="layui-form-item layui-hide">
		<input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" id="layuiadmin-app-form-submit" value="添加">
		<input type="button" lay-submit lay-filter="layuiadmin-app-form-edit" id="layuiadmin-app-form-edit" value="修改">
	</div>
</div>

<script src="${ctxLayui}/layuiadmin/layui/layui.js"></script>
<script>
	layui.config({
		base: '${ctxLayui}/layuiadmin/'
	}).extend({
		index: 'lib/index'
	}).use(['index', 'form','dict','laydate','util'], function(){
		var $ = layui.$ ,form = layui.form;
		var dict = layui.dict;
		var laydate = layui.laydate;
		var util = layui.util;
		var formData = window.parent.formData;
		dict.setSelect("tag","tag",formData?formData.tag:1);
		dict.setSelect("tagStatus","tagStatus",formData?formData.tagStatus:1);
		dict.setSelect("releaseType","releaseType",formData?formData.releaseType:1);
		dict.setSelect("visitStatus","visitStatus",formData?formData.visitStatus:1);
		dict.setSelect("visitTimes","visitTimes",formData?formData.visitTimes:1);
		dict.setSelect("totalCallTime","totalCallTime",formData?formData.totalCallTime:1);
		dict.setSelect("protectStatus","protectStatus",formData?formData.protectStatus:1);
		dict.setSelect("signStatus","signStatus",formData?formData.signStatus:1);
		dict.setSelect("accountType","accountType",formData?formData.accountType:1);
		dict.setSelect("type","type",formData?formData.type:1);
		dict.setSelect("status","status",formData?formData.status:1);
		var intentionTime = formData?(formData.intentionTime?formData.intentionTime:new Date()):new Date();
		var intentionTimeStr = util.toDateString(intentionTime)
		laydate.render({
			elem: '#intentionTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:intentionTimeStr
		});
		var releaseTime = formData?(formData.releaseTime?formData.releaseTime:new Date()):new Date();
		var releaseTimeStr = util.toDateString(releaseTime)
		laydate.render({
			elem: '#releaseTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:releaseTimeStr
		});
		var nextVisitTime = formData?(formData.nextVisitTime?formData.nextVisitTime:new Date()):new Date();
		var nextVisitTimeStr = util.toDateString(nextVisitTime)
		laydate.render({
			elem: '#nextVisitTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:nextVisitTimeStr
		});
		var lastVisitTime = formData?(formData.lastVisitTime?formData.lastVisitTime:new Date()):new Date();
		var lastVisitTimeStr = util.toDateString(lastVisitTime)
		laydate.render({
			elem: '#lastVisitTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:lastVisitTimeStr
		});
		var lastCallTime = formData?(formData.lastCallTime?formData.lastCallTime:new Date()):new Date();
		var lastCallTimeStr = util.toDateString(lastCallTime)
		laydate.render({
			elem: '#lastCallTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:lastCallTimeStr
		});
		var addTime = formData?(formData.addTime?formData.addTime:new Date()):new Date();
		var addTimeStr = util.toDateString(addTime)
		laydate.render({
			elem: '#addTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:addTimeStr
		});
		var protectTime = formData?(formData.protectTime?formData.protectTime:new Date()):new Date();
		var protectTimeStr = util.toDateString(protectTime)
		laydate.render({
			elem: '#protectTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:protectTimeStr
		});
		var createTime = formData?(formData.createTime?formData.createTime:new Date()):new Date();
		var createTimeStr = util.toDateString(createTime)
		laydate.render({
			elem: '#createTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:createTimeStr
		});
		var modifyTime = formData?(formData.modifyTime?formData.modifyTime:new Date()):new Date();
		var modifyTimeStr = util.toDateString(modifyTime)
		laydate.render({
			elem: '#modifyTime-laydate',
			type: 'datetime',//type 默认为 date，所以可不填
			value:modifyTimeStr
		});
	})
</script>
</body>
</html>
